package abstactClassInterfaceCodeKuai02;

public class Fog extends Animal implements Swim {
    public Fog() {
    }

    public Fog(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println("青蛙吃虫子");
    }

    @Override
    public void swim() {
        System.out.println("青蛙在游泳");
    }
}
